<?php
    include_once $config ['client_theme_path'].$config ['client_theme'].'/header.php';
?>

<div id="container">
    	<div class="cat-details">
            <?php
            $config['site_title'] = 'RSS - BanTinNhaDat.vn';
            $config['site_description'] = 'RSS - '. $config['site_description'];
            $config['site_keyword'] = 'RSS, '. $config['site_keyword'];
            ?>
            <div style="margin-top:20px; margin-left:40px;">
                <ul class="rssP">
                    <li><a href="<?php echo $config['domain'];?>/rss/new"><img alt="RSS" src="<?php echo $config['domain'];?>/client/themes/default/images/ico_rss14.gif"/> Các tin mới nhất - bantinnhadat.vn</a></li>
                        <?php
                            $menu = getCategoryByParentId();
                            while($rs=$db->fetch_array($menu)){
                        ?>
                        <li>
                                <a href="<?php echo $config['domain'];?>/rss/<?php echo $rs['link'];?>"><img alt="RSS" src="<?php echo $config['domain'];?>/client/themes/default/images/ico_rss14.gif"/> <?php echo $rs['name'];?></a>
                                <?php
                                    $menuChild = getCategoryByParentId($rs['id']);
                                    if($menuChild){
                                ?>
                                <ul class="rssC">
                                            <?php
                                                $i=0;
                                                while($rsChild=$db->fetch_array($menuChild)){
                                                    $i++;
                                                    if($i==$db->num_rows($menuChild)){
                                            ?>
                                            <li class="last"><a href="<?php echo $config['domain'];?>/rss/<?php echo $rsChild['link'];?>"><img alt="RSS" src="<?php echo $config['domain'];?>/client/themes/default/images/ico_rss14.gif"/> <?php echo $rsChild['name'];?></a></li>
                                           <?php
                                                    }else{
                                           ?>
                                            <li><a href="<?php echo $config['domain'];?>/rss/<?php echo $rsChild['link'];?>"><img alt="RSS" src="<?php echo $config['domain'];?>/client/themes/default/images/ico_rss14.gif"/> <?php echo $rsChild['name'];?></a></li>
                                           <?php
                                                    }
                                                }
                                                $rsChild='';
                                           ?>
                                        </ul>
                                <?php
                                    }
                                ?>
                        </li>
                        <?php
                            }
                        ?>

                </ul>
            </div>
        </div>

        <?php  include_once $config ['client_modules_path'].'/common_right.php'; ?>
        
    </div>

<?php include_once $config ['client_theme_path'].$config ['client_theme'].'/footer.php'; ?>



